package com.naiterui.ehp.bs.doctor.fegin;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bs.doctor.vo.record.PharmacistParamVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author guoyongxiang
 * @date 2020/4/27 16:10
 * @since 1.0.0
 */
@FeignClient(name = "adPharmacist", url = "${ehp.domain.pharmacist}", configuration = FeignConfiguration.class)
public interface PharmacistFeignClient {

    /**
     * 创建药师&电子签名账户
     *
     * @param operator
     * @param paramVO
     *
     * @return
     */
    @PostMapping("inner/cms/user/add")
    Long add(@RequestHeader("operator") String operator, @RequestBody PharmacistParamVO paramVO);

    /**
     * 修改药师&电子签名账户
     *
     * @param operator
     * @param paramVO
     */
    @PostMapping("inner/cms/user/update")
    void update(@RequestHeader("operator") String operator, @RequestBody PharmacistParamVO paramVO);
}
